﻿<%@ Import Namespace="HPortal.Lib" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleDetail.ascx.cs"
    Inherits="HPortal.Module.ArticleDetail" %>
<link href="../App_Themes/DefaultTheme/Article.css" rel="stylesheet" type="text/css" />
<asp:DetailsView ID="dtvArticleView" SkinID="cgDetailView" runat="server" GridLines="None"
    Width="100%" AutoGenerateRows="False" BorderStyle="None" CellPadding="0" CellSpacing="0"
    alight="left">
    <Fields>
        <asp:TemplateField>
            <ItemTemplate>
                <table class="ArticleDetailTable">
                    <tr>
                        <td class="ArticleDetailTitle">
                            <%# DataBinder.Eval(Container, "DataItem.Title") %>
                        </td>
                    </tr>
                    <tr>
                        <td class="ArticleTime">
                            <%# StringHelper.CaptionLanguage("Cập nhật " + StringHelper.ConvertDateTimeToVN((DateTime)DataBinder.Eval(Container, "DataItem.PublishedTime")), "Public time: " + DateTime.Now.ToShortDateString())%>
                        </td>
                    </tr>
                    <tr>
                        <td class="ArticleDetailHead">
                            <%# this.WriteArticleImage(DataBinder.Eval(Container, "DataItem.TypeImage"))%>
                            <%# DataBinder.Eval(Container, "DataItem.Head") %>
                        </td>
                    </tr>
                    <tr>
                        <td class="ArticleContent">
                            <%# DataBinder.Eval(Container, "DataItem.Content") %>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:TemplateField>
    </Fields>
</asp:DetailsView>

    <asp:DataList ID="dtlNew" runat="server" Width="100%" ShowHeader="False" ShowFooter="False">
        <ItemTemplate>
        <table class="ATable">
            <tr>
                <td>
                    <a class="SmallArticleTitle" href='<%# "default.aspx?url=Module/ArticleDetail.ascx&ArticleID=" + DataBinder.Eval(Container, "DataItem.ArticleID") + "&PanelID=" + this.PanelID + "&ChannelID=" + this.ChannelID %>'>
                        <%# DataBinder.Eval(Container, "DataItem.Title") %>
                    </a>
                </td>
            </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>

<table class="MainTable">
    <tr>
        <td>
            <asp:LinkButton ID="cmdContinue" runat="server" CommandArgument="1/1/2050" OnClick="cmdContinue_Click"
                Visible="False" CssClass="linkButton">Xem tiếp>></asp:LinkButton>&nbsp;&nbsp;
        </td>
    </tr>
</table>
